package com.yz.xyt.service;

import com.yz.xyt.domain.Menu;

import java.util.List;

public interface IMenuService {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<String> selectPermsByUserId(Long userId);

    List<Menu> selectUserMenusByUserId(Long userId);

    List<Menu> selectAppMenus(Long userId);

    List<Menu> selectByPid(Menu Menu);

    List<Menu> getMenuTree(Menu pmenu);

    Menu getMenuTree(List<Menu> list,Menu root);
}
